﻿using DotNetCommon;
using System;
using System.IO;

namespace DotNetCommonMachineIdTest
{
    internal class Program
    {
        static void Main(string[] args)
        {
            var baseDir = AppDomain.CurrentDomain.BaseDirectory;
            var txt = """
                MachineId=12
                MachineIdString=WD
                """;
            var filePath = Path.Combine(baseDir, "../../../", "machine.txt");
            if (File.Exists(filePath)) File.Delete(filePath);
            File.WriteAllText(filePath, txt);

            Machine.SetMachineFlagByDefault();
            Console.WriteLine(Machine.MachineId);
            Console.WriteLine(Machine.MachineIdString);
            Console.WriteLine("ok");
        }
    }
}
